File S1. Supplementary code: Side Hustles, Financial Inclusion, and Entrepreneurial Practices among Informal Business Owners (India, World Bank Enterprise Surveys)

DATA (not included). Download the 2022 India Informal Sector Enterprise Survey from https://www.enterprisesurveys.org or https://microdata.worldbank.org and place India-2022-ESIS-full-data.dta in this folder. For the formal-sample scripts, also download the 2022 India Enterprise Survey of Microenterprises and place IndiaMicro-2022-full-data.dta in this folder.

FILES IN THIS FOLDER
Step5_Primary_Survey_Weighted_Models.xlsx and Step6_Robustness_Heterogeneity_and_Hypothesis_Decisions.xlsx hold the original estimates reported in the paper (their sheet and domain labels predate the revision, e.g. "Formal Validation" and "Entrepreneurial development"; the revised manuscript calls these the exploratory formal comparison and entrepreneurial practices). The validation scripts compare their re-estimates with these workbooks. All paths are relative, so keep every file in one folder and run the scripts from it.

ORDER
1. build.py              rebuilds every analysis variable from the raw file
2. validate_primary.py   13 primary models (Table 4), compared with Step 5
3. validate_step6.py     alternative weights, definitions and pathway models, compared with Step 6
4. validate_inter.py     32 interaction models
5. diagnostics.py        missingness (Table S1) and specification sensitivity
6. paid_worker_check.py  paid-worker item under alternative definitions
7. bank_check.py         owner's bank account with added controls
8. formal_models.py      the nine formal-sample models (Table 7), rebuilt from the microenterprise file
9. formal_power.py       formal-sample power and the informal-inside-formal-CI comparison (complete Table S2), from the Table 7 estimates
10. common_sample.py     primary associations re-estimated on common samples (Table S3)
11. common_sample_formal_credit.py  formal-source credit rows of Table S3 (stand-alone Taylor linearization; also re-checks the other rows)

FORMAL SAMPLE. formal_models.py needs only the microenterprise file and validate_primary.py (for the multiple-testing function). Variable definitions and controls are documented in File S3, sheet Formal Models. formal_power.py uses the Table 7 estimates and standard errors as inputs.

ENVIRONMENT. Python 3.13; svy 0.31.0, polars, pandas, numpy, scipy, pyreadstat, openpyxl.
DESIGN. Weight wmedian; 44 strata; 1,417 primary sampling units (stratum x cluster); Taylor linearization; single-cluster strata centered; degrees of freedom 1,417 - 44 = 1,373.
